package com.yh.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yh
 */
@Component
@ConfigurationProperties(prefix = "spring.rocket-mq.producer")
@Data
public class ProducerProperties {

    private String groupName;

    private String serverAddress;

    private Integer maxMessageSize;

    private Integer sendMsgTimeOut;

    private Integer retryTimesWhenSendFailed;

    private String subscribe;
}
